Optimal. Leaf size=239 \[ \frac {(a c+b d) \left (8 a b c d+a^2 \left (c^2-3 d^2\right )-b^2 \left (3 c^2-d^2\right )\right ) x}{\left (a^2+b^2\right )^3}+\frac {(b c-a d) \left (8 a b c d-b^2 \left (c^2-3 d^2\right )+a^2 \left (3 c^2-d^2\right )\right ) \log (a \cos (e+f x)+b \sin (e+f x))}{\left (a^2+b^2\right )^3 f}-\frac {(b c-a d)^2 \left (4 a b c+a^2 d+5 b^2 d\right )}{2 b^2 \left (a^2+b^2\right )^2 f (a+b \tan (e+f x))}-\frac {(b c-a d)^2 (c+d \tan (e+f x))}{2 b \left (a^2+b^2\right ) f (a+b \tan (e+f x))^2} \]
[Out]
________________________________________________________________________________________
Rubi [A]
time = 0.36, antiderivative size = 239, normalized size of antiderivative = 1.00, number of steps
used = 4, number of rules used = 4, integrand size = 25, \(\frac {\text {number of rules}}{\text {integrand size}}\) = 0.160, Rules used = {3646, 3709,
3612, 3611} \begin {gather*} \frac {\left (a^2 \left (3 c^2-d^2\right )+8 a b c d-b^2 \left (c^2-3 d^2\right )\right ) (b c-a d) \log (a \cos (e+f x)+b \sin (e+f x))}{f \left (a^2+b^2\right )^3}+\frac {x (a c+b d) \left (a^2 \left (c^2-3 d^2\right )+8 a b c d-b^2 \left (3 c^2-d^2\right )\right )}{\left (a^2+b^2\right )^3}-\frac {(b c-a d)^2 (c+d \tan (e+f x))}{2 b f \left (a^2+b^2\right ) (a+b \tan (e+f x))^2}-\frac {\left (a^2 d+4 a b c+5 b^2 d\right ) (b c-a d)^2}{2 b^2 f \left (a^2+b^2\right )^2 (a+b \tan (e+f x))} \end {gather*}
Antiderivative was successfully verified.
[In]
[Out]
Rule 3611
Rule 3612
Rule 3646
Rule 3709
Rubi steps
\begin {align*} \int \frac {(c+d \tan (e+f x))^3}{(a+b \tan (e+f x))^3} \, dx &=-\frac {(b c-a d)^2 (c+d \tan (e+f x))}{2 b \left (a^2+b^2\right ) f (a+b \tan (e+f x))^2}+\frac {\int \frac {d (2 b c-a d)^2+b c^2 (2 a c+b d)+2 b \left (a d \left (3 c^2-d^2\right )-b \left (c^3-3 c d^2\right )\right ) \tan (e+f x)+d \left (\left (a^2+2 b^2\right ) d^2-b c (b c-2 a d)\right ) \tan ^2(e+f x)}{(a+b \tan (e+f x))^2} \, dx}{2 b \left (a^2+b^2\right )}\\ &=-\frac {(b c-a d)^2 \left (4 a b c+a^2 d+5 b^2 d\right )}{2 b^2 \left (a^2+b^2\right )^2 f (a+b \tan (e+f x))}-\frac {(b c-a d)^2 (c+d \tan (e+f x))}{2 b \left (a^2+b^2\right ) f (a+b \tan (e+f x))^2}+\frac {\int \frac {-2 b \left (b^2 c \left (c^2-3 d^2\right )-a^2 \left (c^3-3 c d^2\right )-a b \left (6 c^2 d-2 d^3\right )\right )-2 b \left (2 a b c \left (c^2-3 d^2\right )+b^2 d \left (3 c^2-d^2\right )-a^2 \left (3 c^2 d-d^3\right )\right ) \tan (e+f x)}{a+b \tan (e+f x)} \, dx}{2 b \left (a^2+b^2\right )^2}\\ &=\frac {(a c+b d) \left (8 a b c d+a^2 \left (c^2-3 d^2\right )-b^2 \left (3 c^2-d^2\right )\right ) x}{\left (a^2+b^2\right )^3}-\frac {(b c-a d)^2 \left (4 a b c+a^2 d+5 b^2 d\right )}{2 b^2 \left (a^2+b^2\right )^2 f (a+b \tan (e+f x))}-\frac {(b c-a d)^2 (c+d \tan (e+f x))}{2 b \left (a^2+b^2\right ) f (a+b \tan (e+f x))^2}+\frac {\left (-2 b^2 \left (b^2 c \left (c^2-3 d^2\right )-a^2 \left (c^3-3 c d^2\right )-a b \left (6 c^2 d-2 d^3\right )\right )+2 a b \left (2 a b c \left (c^2-3 d^2\right )+b^2 d \left (3 c^2-d^2\right )-a^2 \left (3 c^2 d-d^3\right )\right )\right ) \int \frac {b-a \tan (e+f x)}{a+b \tan (e+f x)} \, dx}{2 b \left (a^2+b^2\right )^3}\\ &=\frac {(a c+b d) \left (8 a b c d+a^2 \left (c^2-3 d^2\right )-b^2 \left (3 c^2-d^2\right )\right ) x}{\left (a^2+b^2\right )^3}+\frac {(b c-a d) \left (3 a^2 c^2-b^2 c^2+8 a b c d-a^2 d^2+3 b^2 d^2\right ) \log (a \cos (e+f x)+b \sin (e+f x))}{\left (a^2+b^2\right )^3 f}-\frac {(b c-a d)^2 \left (4 a b c+a^2 d+5 b^2 d\right )}{2 b^2 \left (a^2+b^2\right )^2 f (a+b \tan (e+f x))}-\frac {(b c-a d)^2 (c+d \tan (e+f x))}{2 b \left (a^2+b^2\right ) f (a+b \tan (e+f x))^2}\\ \end {align*}
________________________________________________________________________________________
Mathematica [C] Result contains complex when optimal does not.
time = 5.77, size = 327, normalized size = 1.37 \begin {gather*} \frac {-\frac {d^2 (b c+a d)}{(a+b \tan (e+f x))^2}-\frac {2 b d^2 (c+d \tan (e+f x))}{(a+b \tan (e+f x))^2}+2 b d \left (3 c^2-d^2\right ) \left (-\frac {i \log (i-\tan (e+f x))}{2 (a+i b)^2}+\frac {i \log (i+\tan (e+f x))}{2 (a-i b)^2}+\frac {b \left (2 a \log (a+b \tan (e+f x))-\frac {a^2+b^2}{a+b \tan (e+f x)}\right )}{\left (a^2+b^2\right )^2}\right )+b \left (a d \left (-3 c^2+d^2\right )+b \left (c^3-3 c d^2\right )\right ) \left (\frac {\log (i-\tan (e+f x))}{(-i a+b)^3}+\frac {\log (i+\tan (e+f x))}{(i a+b)^3}+\frac {b \left (\left (6 a^2-2 b^2\right ) \log (a+b \tan (e+f x))-\frac {\left (a^2+b^2\right ) \left (5 a^2+b^2+4 a b \tan (e+f x)\right )}{(a+b \tan (e+f x))^2}\right )}{\left (a^2+b^2\right )^3}\right )}{2 b^2 f} \end {gather*}
Antiderivative was successfully verified.
[In]
[Out]
________________________________________________________________________________________
Maple [A]
time = 0.32, size = 422, normalized size = 1.77
method | result | size |
derivativedivides | \(\frac {\frac {\frac {\left (3 a^{3} c^{2} d -a^{3} d^{3}-3 a^{2} b \,c^{3}+9 a^{2} b c \,d^{2}-9 a \,b^{2} c^{2} d +3 a \,b^{2} d^{3}+b^{3} c^{3}-3 b^{3} c \,d^{2}\right ) \ln \left (1+\tan ^{2}\left (f x +e \right )\right )}{2}+\left (a^{3} c^{3}-3 a^{3} c \,d^{2}+9 a^{2} b \,c^{2} d -3 a^{2} b \,d^{3}-3 a \,b^{2} c^{3}+9 a \,b^{2} c \,d^{2}-3 b^{3} c^{2} d +b^{3} d^{3}\right ) \arctan \left (\tan \left (f x +e \right )\right )}{\left (a^{2}+b^{2}\right )^{3}}-\frac {-a^{3} d^{3}+3 a^{2} b c \,d^{2}-3 a \,b^{2} c^{2} d +b^{3} c^{3}}{2 \left (a^{2}+b^{2}\right ) b^{2} \left (a +b \tan \left (f x +e \right )\right )^{2}}-\frac {a^{4} d^{3}-3 a^{2} b^{2} c^{2} d +3 a^{2} b^{2} d^{3}+2 a \,b^{3} c^{3}-6 a \,b^{3} c \,d^{2}+3 b^{4} c^{2} d}{\left (a^{2}+b^{2}\right )^{2} b^{2} \left (a +b \tan \left (f x +e \right )\right )}-\frac {\left (3 a^{3} c^{2} d -a^{3} d^{3}-3 a^{2} b \,c^{3}+9 a^{2} b c \,d^{2}-9 a \,b^{2} c^{2} d +3 a \,b^{2} d^{3}+b^{3} c^{3}-3 b^{3} c \,d^{2}\right ) \ln \left (a +b \tan \left (f x +e \right )\right )}{\left (a^{2}+b^{2}\right )^{3}}}{f}\) | \(422\) |
default | \(\frac {\frac {\frac {\left (3 a^{3} c^{2} d -a^{3} d^{3}-3 a^{2} b \,c^{3}+9 a^{2} b c \,d^{2}-9 a \,b^{2} c^{2} d +3 a \,b^{2} d^{3}+b^{3} c^{3}-3 b^{3} c \,d^{2}\right ) \ln \left (1+\tan ^{2}\left (f x +e \right )\right )}{2}+\left (a^{3} c^{3}-3 a^{3} c \,d^{2}+9 a^{2} b \,c^{2} d -3 a^{2} b \,d^{3}-3 a \,b^{2} c^{3}+9 a \,b^{2} c \,d^{2}-3 b^{3} c^{2} d +b^{3} d^{3}\right ) \arctan \left (\tan \left (f x +e \right )\right )}{\left (a^{2}+b^{2}\right )^{3}}-\frac {-a^{3} d^{3}+3 a^{2} b c \,d^{2}-3 a \,b^{2} c^{2} d +b^{3} c^{3}}{2 \left (a^{2}+b^{2}\right ) b^{2} \left (a +b \tan \left (f x +e \right )\right )^{2}}-\frac {a^{4} d^{3}-3 a^{2} b^{2} c^{2} d +3 a^{2} b^{2} d^{3}+2 a \,b^{3} c^{3}-6 a \,b^{3} c \,d^{2}+3 b^{4} c^{2} d}{\left (a^{2}+b^{2}\right )^{2} b^{2} \left (a +b \tan \left (f x +e \right )\right )}-\frac {\left (3 a^{3} c^{2} d -a^{3} d^{3}-3 a^{2} b \,c^{3}+9 a^{2} b c \,d^{2}-9 a \,b^{2} c^{2} d +3 a \,b^{2} d^{3}+b^{3} c^{3}-3 b^{3} c \,d^{2}\right ) \ln \left (a +b \tan \left (f x +e \right )\right )}{\left (a^{2}+b^{2}\right )^{3}}}{f}\) | \(422\) |
norman | \(\frac {\frac {\left (-a^{4} d^{3}+3 a^{2} b^{2} c^{2} d -3 a^{2} b^{2} d^{3}-2 a \,b^{3} c^{3}+6 a \,b^{3} c \,d^{2}-3 b^{4} c^{2} d \right ) \tan \left (f x +e \right )}{f b \left (a^{4}+2 a^{2} b^{2}+b^{4}\right )}+\frac {\left (a^{3} c^{3}-3 a^{3} c \,d^{2}+9 a^{2} b \,c^{2} d -3 a^{2} b \,d^{3}-3 a \,b^{2} c^{3}+9 a \,b^{2} c \,d^{2}-3 b^{3} c^{2} d +b^{3} d^{3}\right ) a^{2} x}{\left (a^{4}+2 a^{2} b^{2}+b^{4}\right ) \left (a^{2}+b^{2}\right )}+\frac {b^{2} \left (a^{3} c^{3}-3 a^{3} c \,d^{2}+9 a^{2} b \,c^{2} d -3 a^{2} b \,d^{3}-3 a \,b^{2} c^{3}+9 a \,b^{2} c \,d^{2}-3 b^{3} c^{2} d +b^{3} d^{3}\right ) x \left (\tan ^{2}\left (f x +e \right )\right )}{\left (a^{4}+2 a^{2} b^{2}+b^{4}\right ) \left (a^{2}+b^{2}\right )}+\frac {-a^{5} d^{3}-3 a^{4} b c \,d^{2}+9 a^{3} b^{2} c^{2} d -5 a^{3} b^{2} d^{3}-5 a^{2} b^{3} c^{3}+9 a^{2} b^{3} c \,d^{2}-3 a \,b^{4} c^{2} d -b^{5} c^{3}}{2 f \,b^{2} \left (a^{4}+2 a^{2} b^{2}+b^{4}\right )}+\frac {2 b \left (a^{3} c^{3}-3 a^{3} c \,d^{2}+9 a^{2} b \,c^{2} d -3 a^{2} b \,d^{3}-3 a \,b^{2} c^{3}+9 a \,b^{2} c \,d^{2}-3 b^{3} c^{2} d +b^{3} d^{3}\right ) a x \tan \left (f x +e \right )}{\left (a^{4}+2 a^{2} b^{2}+b^{4}\right ) \left (a^{2}+b^{2}\right )}}{\left (a +b \tan \left (f x +e \right )\right )^{2}}+\frac {\left (3 a^{3} c^{2} d -a^{3} d^{3}-3 a^{2} b \,c^{3}+9 a^{2} b c \,d^{2}-9 a \,b^{2} c^{2} d +3 a \,b^{2} d^{3}+b^{3} c^{3}-3 b^{3} c \,d^{2}\right ) \ln \left (1+\tan ^{2}\left (f x +e \right )\right )}{2 f \left (a^{6}+3 a^{4} b^{2}+3 a^{2} b^{4}+b^{6}\right )}-\frac {\left (3 a^{3} c^{2} d -a^{3} d^{3}-3 a^{2} b \,c^{3}+9 a^{2} b c \,d^{2}-9 a \,b^{2} c^{2} d +3 a \,b^{2} d^{3}+b^{3} c^{3}-3 b^{3} c \,d^{2}\right ) \ln \left (a +b \tan \left (f x +e \right )\right )}{f \left (a^{6}+3 a^{4} b^{2}+3 a^{2} b^{4}+b^{6}\right )}\) | \(760\) |
risch | \(\text {Expression too large to display}\) | \(1681\) |
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Maxima [B] Leaf count of result is larger than twice the leaf count of optimal. 539 vs.
\(2 (240) = 480\).
time = 0.66, size = 539, normalized size = 2.26 \begin {gather*} \frac {\frac {2 \, {\left ({\left (a^{3} - 3 \, a b^{2}\right )} c^{3} + 3 \, {\left (3 \, a^{2} b - b^{3}\right )} c^{2} d - 3 \, {\left (a^{3} - 3 \, a b^{2}\right )} c d^{2} - {\left (3 \, a^{2} b - b^{3}\right )} d^{3}\right )} {\left (f x + e\right )}}{a^{6} + 3 \, a^{4} b^{2} + 3 \, a^{2} b^{4} + b^{6}} + \frac {2 \, {\left ({\left (3 \, a^{2} b - b^{3}\right )} c^{3} - 3 \, {\left (a^{3} - 3 \, a b^{2}\right )} c^{2} d - 3 \, {\left (3 \, a^{2} b - b^{3}\right )} c d^{2} + {\left (a^{3} - 3 \, a b^{2}\right )} d^{3}\right )} \log \left (b \tan \left (f x + e\right ) + a\right )}{a^{6} + 3 \, a^{4} b^{2} + 3 \, a^{2} b^{4} + b^{6}} - \frac {{\left ({\left (3 \, a^{2} b - b^{3}\right )} c^{3} - 3 \, {\left (a^{3} - 3 \, a b^{2}\right )} c^{2} d - 3 \, {\left (3 \, a^{2} b - b^{3}\right )} c d^{2} + {\left (a^{3} - 3 \, a b^{2}\right )} d^{3}\right )} \log \left (\tan \left (f x + e\right )^{2} + 1\right )}{a^{6} + 3 \, a^{4} b^{2} + 3 \, a^{2} b^{4} + b^{6}} - \frac {{\left (5 \, a^{2} b^{3} + b^{5}\right )} c^{3} - 3 \, {\left (3 \, a^{3} b^{2} - a b^{4}\right )} c^{2} d + 3 \, {\left (a^{4} b - 3 \, a^{2} b^{3}\right )} c d^{2} + {\left (a^{5} + 5 \, a^{3} b^{2}\right )} d^{3} + 2 \, {\left (2 \, a b^{4} c^{3} - 6 \, a b^{4} c d^{2} - 3 \, {\left (a^{2} b^{3} - b^{5}\right )} c^{2} d + {\left (a^{4} b + 3 \, a^{2} b^{3}\right )} d^{3}\right )} \tan \left (f x + e\right )}{a^{6} b^{2} + 2 \, a^{4} b^{4} + a^{2} b^{6} + {\left (a^{4} b^{4} + 2 \, a^{2} b^{6} + b^{8}\right )} \tan \left (f x + e\right )^{2} + 2 \, {\left (a^{5} b^{3} + 2 \, a^{3} b^{5} + a b^{7}\right )} \tan \left (f x + e\right )}}{2 \, f} \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Fricas [B] Leaf count of result is larger than twice the leaf count of optimal. 907 vs.
\(2 (240) = 480\).
time = 1.43, size = 907, normalized size = 3.79 \begin {gather*} -\frac {{\left (7 \, a^{2} b^{3} + b^{5}\right )} c^{3} - 3 \, {\left (5 \, a^{3} b^{2} - a b^{4}\right )} c^{2} d + 9 \, {\left (a^{4} b - a^{2} b^{3}\right )} c d^{2} - {\left (a^{5} - 5 \, a^{3} b^{2}\right )} d^{3} - 2 \, {\left ({\left (a^{5} - 3 \, a^{3} b^{2}\right )} c^{3} + 3 \, {\left (3 \, a^{4} b - a^{2} b^{3}\right )} c^{2} d - 3 \, {\left (a^{5} - 3 \, a^{3} b^{2}\right )} c d^{2} - {\left (3 \, a^{4} b - a^{2} b^{3}\right )} d^{3}\right )} f x - {\left ({\left (5 \, a^{2} b^{3} - b^{5}\right )} c^{3} - 9 \, {\left (a^{3} b^{2} - a b^{4}\right )} c^{2} d + 3 \, {\left (a^{4} b - 5 \, a^{2} b^{3}\right )} c d^{2} + {\left (a^{5} + 7 \, a^{3} b^{2}\right )} d^{3} + 2 \, {\left ({\left (a^{3} b^{2} - 3 \, a b^{4}\right )} c^{3} + 3 \, {\left (3 \, a^{2} b^{3} - b^{5}\right )} c^{2} d - 3 \, {\left (a^{3} b^{2} - 3 \, a b^{4}\right )} c d^{2} - {\left (3 \, a^{2} b^{3} - b^{5}\right )} d^{3}\right )} f x\right )} \tan \left (f x + e\right )^{2} - {\left ({\left (3 \, a^{4} b - a^{2} b^{3}\right )} c^{3} - 3 \, {\left (a^{5} - 3 \, a^{3} b^{2}\right )} c^{2} d - 3 \, {\left (3 \, a^{4} b - a^{2} b^{3}\right )} c d^{2} + {\left (a^{5} - 3 \, a^{3} b^{2}\right )} d^{3} + {\left ({\left (3 \, a^{2} b^{3} - b^{5}\right )} c^{3} - 3 \, {\left (a^{3} b^{2} - 3 \, a b^{4}\right )} c^{2} d - 3 \, {\left (3 \, a^{2} b^{3} - b^{5}\right )} c d^{2} + {\left (a^{3} b^{2} - 3 \, a b^{4}\right )} d^{3}\right )} \tan \left (f x + e\right )^{2} + 2 \, {\left ({\left (3 \, a^{3} b^{2} - a b^{4}\right )} c^{3} - 3 \, {\left (a^{4} b - 3 \, a^{2} b^{3}\right )} c^{2} d - 3 \, {\left (3 \, a^{3} b^{2} - a b^{4}\right )} c d^{2} + {\left (a^{4} b - 3 \, a^{2} b^{3}\right )} d^{3}\right )} \tan \left (f x + e\right )\right )} \log \left (\frac {b^{2} \tan \left (f x + e\right )^{2} + 2 \, a b \tan \left (f x + e\right ) + a^{2}}{\tan \left (f x + e\right )^{2} + 1}\right ) - 2 \, {\left (3 \, {\left (a^{3} b^{2} - a b^{4}\right )} c^{3} - 3 \, {\left (2 \, a^{4} b - 3 \, a^{2} b^{3} + b^{5}\right )} c^{2} d + 3 \, {\left (a^{5} - 3 \, a^{3} b^{2} + 2 \, a b^{4}\right )} c d^{2} + 3 \, {\left (a^{4} b - a^{2} b^{3}\right )} d^{3} + 2 \, {\left ({\left (a^{4} b - 3 \, a^{2} b^{3}\right )} c^{3} + 3 \, {\left (3 \, a^{3} b^{2} - a b^{4}\right )} c^{2} d - 3 \, {\left (a^{4} b - 3 \, a^{2} b^{3}\right )} c d^{2} - {\left (3 \, a^{3} b^{2} - a b^{4}\right )} d^{3}\right )} f x\right )} \tan \left (f x + e\right )}{2 \, {\left ({\left (a^{6} b^{2} + 3 \, a^{4} b^{4} + 3 \, a^{2} b^{6} + b^{8}\right )} f \tan \left (f x + e\right )^{2} + 2 \, {\left (a^{7} b + 3 \, a^{5} b^{3} + 3 \, a^{3} b^{5} + a b^{7}\right )} f \tan \left (f x + e\right ) + {\left (a^{8} + 3 \, a^{6} b^{2} + 3 \, a^{4} b^{4} + a^{2} b^{6}\right )} f\right )}} \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Sympy [F(-2)]
time = 0.00, size = 0, normalized size = 0.00 \begin {gather*} \text {Exception raised: AttributeError} \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Giac [B] Leaf count of result is larger than twice the leaf count of optimal. 830 vs.
\(2 (240) = 480\).
time = 0.95, size = 830, normalized size = 3.47 \begin {gather*} \frac {\frac {2 \, {\left (a^{3} c^{3} - 3 \, a b^{2} c^{3} + 9 \, a^{2} b c^{2} d - 3 \, b^{3} c^{2} d - 3 \, a^{3} c d^{2} + 9 \, a b^{2} c d^{2} - 3 \, a^{2} b d^{3} + b^{3} d^{3}\right )} {\left (f x + e\right )}}{a^{6} + 3 \, a^{4} b^{2} + 3 \, a^{2} b^{4} + b^{6}} - \frac {{\left (3 \, a^{2} b c^{3} - b^{3} c^{3} - 3 \, a^{3} c^{2} d + 9 \, a b^{2} c^{2} d - 9 \, a^{2} b c d^{2} + 3 \, b^{3} c d^{2} + a^{3} d^{3} - 3 \, a b^{2} d^{3}\right )} \log \left (\tan \left (f x + e\right )^{2} + 1\right )}{a^{6} + 3 \, a^{4} b^{2} + 3 \, a^{2} b^{4} + b^{6}} + \frac {2 \, {\left (3 \, a^{2} b^{2} c^{3} - b^{4} c^{3} - 3 \, a^{3} b c^{2} d + 9 \, a b^{3} c^{2} d - 9 \, a^{2} b^{2} c d^{2} + 3 \, b^{4} c d^{2} + a^{3} b d^{3} - 3 \, a b^{3} d^{3}\right )} \log \left ({\left | b \tan \left (f x + e\right ) + a \right |}\right )}{a^{6} b + 3 \, a^{4} b^{3} + 3 \, a^{2} b^{5} + b^{7}} - \frac {9 \, a^{2} b^{5} c^{3} \tan \left (f x + e\right )^{2} - 3 \, b^{7} c^{3} \tan \left (f x + e\right )^{2} - 9 \, a^{3} b^{4} c^{2} d \tan \left (f x + e\right )^{2} + 27 \, a b^{6} c^{2} d \tan \left (f x + e\right )^{2} - 27 \, a^{2} b^{5} c d^{2} \tan \left (f x + e\right )^{2} + 9 \, b^{7} c d^{2} \tan \left (f x + e\right )^{2} + 3 \, a^{3} b^{4} d^{3} \tan \left (f x + e\right )^{2} - 9 \, a b^{6} d^{3} \tan \left (f x + e\right )^{2} + 22 \, a^{3} b^{4} c^{3} \tan \left (f x + e\right ) - 2 \, a b^{6} c^{3} \tan \left (f x + e\right ) - 24 \, a^{4} b^{3} c^{2} d \tan \left (f x + e\right ) + 54 \, a^{2} b^{5} c^{2} d \tan \left (f x + e\right ) + 6 \, b^{7} c^{2} d \tan \left (f x + e\right ) - 66 \, a^{3} b^{4} c d^{2} \tan \left (f x + e\right ) + 6 \, a b^{6} c d^{2} \tan \left (f x + e\right ) + 2 \, a^{6} b d^{3} \tan \left (f x + e\right ) + 14 \, a^{4} b^{3} d^{3} \tan \left (f x + e\right ) - 12 \, a^{2} b^{5} d^{3} \tan \left (f x + e\right ) + 14 \, a^{4} b^{3} c^{3} + 3 \, a^{2} b^{5} c^{3} + b^{7} c^{3} - 18 \, a^{5} b^{2} c^{2} d + 21 \, a^{3} b^{4} c^{2} d + 3 \, a b^{6} c^{2} d + 3 \, a^{6} b c d^{2} - 33 \, a^{4} b^{3} c d^{2} + a^{7} d^{3} + 9 \, a^{5} b^{2} d^{3} - 4 \, a^{3} b^{4} d^{3}}{{\left (a^{6} b^{2} + 3 \, a^{4} b^{4} + 3 \, a^{2} b^{6} + b^{8}\right )} {\left (b \tan \left (f x + e\right ) + a\right )}^{2}}}{2 \, f} \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Mupad [B]
time = 8.00, size = 466, normalized size = 1.95 \begin {gather*} -\frac {\frac {a^5\,d^3+3\,a^4\,b\,c\,d^2-9\,a^3\,b^2\,c^2\,d+5\,a^3\,b^2\,d^3+5\,a^2\,b^3\,c^3-9\,a^2\,b^3\,c\,d^2+3\,a\,b^4\,c^2\,d+b^5\,c^3}{2\,b^2\,\left (a^4+2\,a^2\,b^2+b^4\right )}+\frac {\mathrm {tan}\left (e+f\,x\right )\,\left (a^4\,d^3-3\,a^2\,b^2\,c^2\,d+3\,a^2\,b^2\,d^3+2\,a\,b^3\,c^3-6\,a\,b^3\,c\,d^2+3\,b^4\,c^2\,d\right )}{b\,\left (a^4+2\,a^2\,b^2+b^4\right )}}{f\,\left (a^2+2\,a\,b\,\mathrm {tan}\left (e+f\,x\right )+b^2\,{\mathrm {tan}\left (e+f\,x\right )}^2\right )}-\frac {\ln \left (\mathrm {tan}\left (e+f\,x\right )-\mathrm {i}\right )\,\left (-c^3\,1{}\mathrm {i}+3\,c^2\,d+c\,d^2\,3{}\mathrm {i}-d^3\right )}{2\,f\,\left (-a^3-a^2\,b\,3{}\mathrm {i}+3\,a\,b^2+b^3\,1{}\mathrm {i}\right )}-\frac {\ln \left (a+b\,\mathrm {tan}\left (e+f\,x\right )\right )\,\left (\left (3\,c^2\,d-d^3\right )\,a^3+\left (9\,c\,d^2-3\,c^3\right )\,a^2\,b+\left (3\,d^3-9\,c^2\,d\right )\,a\,b^2+\left (c^3-3\,c\,d^2\right )\,b^3\right )}{f\,\left (a^6+3\,a^4\,b^2+3\,a^2\,b^4+b^6\right )}-\frac {\ln \left (\mathrm {tan}\left (e+f\,x\right )+1{}\mathrm {i}\right )\,\left (-c^3+c^2\,d\,3{}\mathrm {i}+3\,c\,d^2-d^3\,1{}\mathrm {i}\right )}{2\,f\,\left (-a^3\,1{}\mathrm {i}-3\,a^2\,b+a\,b^2\,3{}\mathrm {i}+b^3\right )} \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________